package com.haoze.nurseapp.dao;

import com.haoze.common.mapper.MyMapper;
import com.haoze.nurseapp.model.CirculationLogEntity;
import com.haoze.nurseapp.model.CommonTaskCirculationEntity;
import feign.Param;
import org.apache.kafka.common.protocol.types.Field;

import java.util.List;
import java.util.Map;

public interface CommonTaskCirculationMapper extends MyMapper<CommonTaskCirculationEntity> {

    List<String> queryBedByWardDeptId(@Param("wardDeptId") String wardDeptId);
    List<Map<String,String>> queryBedByWardDeptId2(@Param("wardDeptId") String wardDeptId,@Param("id") String id,@Param("keyWords") String keyWords);

    List<Map<String, String>> queryNurseLeaderByWardDeptId(@Param("wardDeptId") String wardDeptId, @Param("bedNo") String bedNo);

    CirculationLogEntity selectLogByInpatNumAndType(@Param("inpatNum") String inpatNum, @Param("code") String code);

    CommonTaskCirculationEntity selectByTempId(@Param("inpatNum") String inpatNum, @Param("circulationTemplateId") String circulationTemplateId);

    List<String> selectByCirculationLogId(@Param("circulationlLogId") String circulationlLogId);

    int updateByCirculationLogId(@Param("commonTaskCirculationIds") List<String> commonTaskCirculationIds,@Param("circulationlLogId") String circulationlLogId);

    CommonTaskCirculationEntity selectByLogIdAndTempId(@Param("circulationlLogId") String circulationlLogId,@Param("circulationTemplateId") String circulationTemplateId);
}



